package com.ruoyi.pyo.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Map;

/**
 * 医院对象 pet_yeah_hospital
 * 
 * @author ruoyi
 * @date 2025-11-19
 */
@TableName("pet_yeah_hospital")
public class PetYeahHospital extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 医院名称 */
    @Excel(name = "医院名称")
    private String hisName;

    /** 分类 */
    @Excel(name = "分类")
    private Long dictCode;

    /** 手机号码/联系方式 */
    @Excel(name = "手机号码/联系方式")
    private String phoneNumber;

    /** 医院封面 */
    @Excel(name = "医院封面")
    private String cover;

    /** 营业时间 */
    @Excel(name = "营业时间")
    private String openTime;

    /** 省-代码 */
    @Excel(name = "省-代码")
    private String provinceCode;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市-代码 */
    @Excel(name = "市-代码")
    private String cityCode;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String district;

    /** 区-代码 */
    @Excel(name = "区-代码")
    private String districtCode;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String addr;

    /** 经度 */
    @Excel(name = "经度")
    private String lng;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 医院属性，非主属性都在这里 */
    @Excel(name = "医院属性，非主属性都在这里")
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private Map<String,Object> attrs;

    /** 角色状态（0正常 1停用）可用作上下架 */
    @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setHisName(String hisName) 
    {
        this.hisName = hisName;
    }

    public String getHisName() 
    {
        return hisName;
    }

    public void setDictCode(Long dictCode) 
    {
        this.dictCode = dictCode;
    }

    public Long getDictCode() 
    {
        return dictCode;
    }

    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }

    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    public void setOpenTime(String openTime) 
    {
        this.openTime = openTime;
    }

    public String getOpenTime() 
    {
        return openTime;
    }

    public void setProvinceCode(String provinceCode) 
    {
        this.provinceCode = provinceCode;
    }

    public String getProvinceCode() 
    {
        return provinceCode;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }

    public void setDistrictCode(String districtCode) 
    {
        this.districtCode = districtCode;
    }

    public String getDistrictCode() 
    {
        return districtCode;
    }

    public void setAddr(String addr) 
    {
        this.addr = addr;
    }

    public String getAddr() 
    {
        return addr;
    }

    public void setLng(String lng) 
    {
        this.lng = lng;
    }

    public String getLng() 
    {
        return lng;
    }

    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }

    public void setAttrs(Map<String,Object> attrs)
    {
        this.attrs = attrs;
    }

    public Map<String, Object> getAttrs()
    {
        return attrs;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hisName", getHisName())
            .append("dictCode", getDictCode())
            .append("phoneNumber", getPhoneNumber())
            .append("cover", getCover())
            .append("openTime", getOpenTime())
            .append("provinceCode", getProvinceCode())
            .append("province", getProvince())
            .append("cityCode", getCityCode())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("districtCode", getDistrictCode())
            .append("addr", getAddr())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("attrs", getAttrs())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
